package com.charging.mapper;

import com.charging.bean.Site;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.charging.config.result.ApiResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 站点信息 Mapper 接口
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-16
 */
public interface SiteMapper extends BaseMapper<Site> {

    /**
     * @param map
     * @return 后台查询
     */
    List<Site> selectMyPage(@Param("param") Map map);
    Integer  countMyPage (@Param("param")Map map);


    List<Site>  findSiteByLocal(@Param("dimension")String dimension,@Param("longitude")String longitude);


    /**
     * @param map
     * @return 筛选
     */
    List<Site> screen(@Param("param")Map map);

    List<Site> screen1(@Param("param")Map map);


    /**
     * @param map
     * @return 搜索
     */
    List<Site> sousuo(@Param("param") Map map);


    /**
     * @param name
     * @return 详情
     */
    List<Site> details(@Param("name")String name);

}
